from __future__ import division
import numpy as np
import sys

def Print_progress(current,total,start=0,pre_sentence='Progress: ',post_sentence=""):
    sentence='\r' + pre_sentence + '{:.3%}'.format((current-start)/(total-start))+post_sentence
    sys.stdout.write(sentence)
    sys.stdout.flush()
    
def Print_flush(sentence):
    sys.stdout.write(sentence)
    sys.stdout.flush()